﻿using System;
using SMS.Entities.BaseClasses;

namespace SMS.Entities
{
    public class UserActivity : BaseEntity
    {
        private int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; OnPropertyChanged("ID"); }
        }

        private string _UserName;

        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; OnPropertyChanged("UserName"); }
        }

        private DateTime _LogTime;

        public DateTime LogTime
        {
            get { return _LogTime; }
            set { _LogTime = value; OnPropertyChanged("LogTime"); }
        }

        public string DateString
        {
            get { return LogTime.ToShortDateString(); }
            set { }
        }

        public string TimString
        {
            get { return LogTime.ToShortTimeString(); }
            set
            { }
        }

        private string _Activity;

        public string Activity
        {
            get { return _Activity; }
            set { _Activity = value; OnPropertyChanged("Activity"); }
        }

        private string _ObjectString;

        public string ObjectString
        {
            get { return _ObjectString; }
            set { _ObjectString = value; OnPropertyChanged("ObjectString"); }
        }

    }
}
